<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
</head>
<body>
    <input type="button" value="GET DATA" id="btn">

    <script src="./node_modules/jquery/dist/jquery.min.js"></script>
    <script>
        $(function(){
            $('#btn').on('click', function () {
                $.ajax({
                    url: './data.json',
                    type: 'GET',
                    dataType: 'json'
                }).then(function (data) {
                    console.log(data)
                })
            })
        })
    </script>
</body>
</html>